const { merge } = require("webpack-merge")

const config = require('./config/config')
const build = require('./config/build')
const serve = require('./config/serve')

module.exports = function ({ development }) {
    // if (development)
    //     return { merge(config, serve) }
    // else
    //     return { merge(config, build) } 
    
    //简写
    return merge(config, development ? serve : build)
}   
